import request from '@/utils/request'

// 查询AIS终端列表
export function listAisTerminal(query) {
  return request({
    url: '/basicInformation/aisTerminal/list',
    method: 'get',
    params: query
  })
}

// 查询AIS终端详细
export function getAisTerminal(id) {
  return request({
    url: '/basicInformation/aisTerminal/' + id,
    method: 'get'
  })
}

// 新增AIS终端
export function addAisTerminal(data) {
  return request({
    url: '/basicInformation/aisTerminal',
    method: 'post',
    data: data
  })
}

// 修改AIS终端
export function updateAisTerminal(data) {
  return request({
    url: '/basicInformation/aisTerminal',
    method: 'put',
    data: data
  })
}

// 删除AIS终端
export function delAisTerminal(id) {
  return request({
    url: '/basicInformation/aisTerminal/' + id,
    method: 'delete'
  })
}

// 导出AIS终端
export function exportAisTerminal(query) {
  return request({
    url: '/basicInformation/aisTerminal/export',
    method: 'get',
    params: query
  })
}